package com.ydj.app.protocol.http.cms;

import com.ydj.app.enumerate.BannerActionEnum;
import com.ydj.app.enumerate.MemberLevelEnum;
import com.ydj.framework.protocol.JsonBaseRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Getter
public class CmsBannerUpdateReq extends JsonBaseRequest {
    @ApiModelProperty(value = "ID", required = true)
    @NotNull(message = "ID不能为空")
    private Long id;

    @ApiModelProperty(value = "标题", required = true)
    @NotBlank(message = "标题不能为空")
    private String title;

    @ApiModelProperty(value = "图片地址", required = true)
    @NotBlank(message = "图片不能为空")
    private String image;

    @ApiModelProperty(value = "排序号", required = true, example = "0")
    @NotNull(message = "排序号不能为空")
    private Integer orderNumber;

    @ApiModelProperty(value = "动作类型", required = true)
    @NotNull(message = "动作不能为空")
    private BannerActionEnum action;

    @ApiModelProperty(value = "跳转URL（当动作是跳转时必填）")
    private String actionUrl;

    @ApiModelProperty(value = "会员等级", required = true)
    @NotNull(message = "会员等级不能为空")
    private List<MemberLevelEnum> memberLevelList;

    @ApiModelProperty(value = "是否上架", required = true)
    @NotNull(message = "是否上架不能为空")
    private Boolean enable;

    @ApiModelProperty(value = "备注")
    private String remark;
}